init: Add new explicit temporary directory
authorColin Walters <walters@verbum.org>
Tue, 8 Nov 2011 23:13:05 +0000 (18:13 -0500)
committerColin Walters <walters@verbum.org>
Tue, 8 Nov 2011 23:58:11 +0000 (18:58 -0500)
This will be used to store all tempoary files.

ostree/ot-builtin-init.c

index 1e8580136fda424225d3bd7c11faa4efb3af23ae..816798d23da689ace1e653aae365126faffcb1a9 100644 (file)
@@ -72,6 +72,11 @@ ostree_builtin_init (int argc, char **argv, const char *repo_path, GError **erro
     goto out;
   g_clear_object (&child);
 
+  child = g_file_get_child (repodir, "tmp");
+  if (!g_file_make_directory (child, NULL, error))
+    goto out;
+  g_clear_object (&child);
+
   child = g_file_get_child (repodir, "refs");
   if (!g_file_make_directory (child, NULL, error))
     goto out;